def sum_2num(num1, num2):
    return num1 + num2
if __name__ == '__main__':
    print(sum_2num(10,2))

def my_sum(*args):
    return sum(args)
my_list = [1,2,3,4]
print(my_sum(*my_list))
my_tuple = (1,2,3,4)
print(my_sum(*my_tuple))

user_list = [
    {'name': '张三', 'age': 22, 'title': '测试工程师'},
    {'name': '李四', 'age': 24, 'title': '开发工程师'},
    {'name': '王五', 'age': 21, 'title': '测试工程师'}
]
user_list.sort(key=lambda x:x['age'])
print(user_list)